import { reqJson } from './requestWithToken';
import domain from '@/utils/domain';

export async function info() {
  const url = `${domain.user}/sys/users/current-info`;
  return reqJson.get(url);
}

export async function changePwd(params) {
  const url = `${domain.user}/sys/users/changePassword`;
  return reqJson.postJson(url, params);
}
